package com.nyc.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author niuyicong
 * @date 2025/9/3  16:38:18
 * @description
 */
@RestController
public class TestController {
    @Value("${user.test.name}")
    private String userName;
    @Value("${user.test.age}")
    private Integer age;

    @GetMapping("/test")
    public String test(){
        return "-->" + userName + "--->" + age;
    }
}
